import request from './index'

export const doList = (data: any) => {
  return request.ajax({
    url: '/RoadLineCustomer',
    type: 'GET',
    noLogin: true,
    page: '/pages/line/list/list',
    data
  })
}

export const doAdd = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/Add',
    type: 'POST',
    page: page
  })
}

export const doEdit = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/Update',
    type: 'POST',
    page: page
  })
}

export const doDel = (data: any, page?: string) => {
  return request.ajax({
    data: data,
    url: '/RoadLine/Delete',
    type: 'POST',
    page: page
  })
}